package com.hornsun.domain.dbo;

import org.springframework.stereotype.Component;

import java.util.Date;
@Component
public class MemberWechat {
    private String openid;

    private String memberGuid;

    private String unionid;

    private Byte gender;

    private String city;

    private String terminal;

    private Integer healthBeans;

    private Date lastLoginTime;

    private String nickname;

    private String head;

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    public String getMemberGuid() {
        return memberGuid;
    }

    public void setMemberGuid(String memberGuid) {
        this.memberGuid = memberGuid == null ? null : memberGuid.trim();
    }

    public String getUnionid() {
        return unionid;
    }

    public void setUnionid(String unionid) {
        this.unionid = unionid == null ? null : unionid.trim();
    }

    public Byte getGender() {
        return gender;
    }

    public void setGender(Byte gender) {
        this.gender = gender;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city == null ? null : city.trim();
    }

    public String getTerminal() {
        return terminal;
    }

    public void setTerminal(String terminal) {
        this.terminal = terminal == null ? null : terminal.trim();
    }

    public Integer getHealthBeans() {
        return healthBeans;
    }

    public void setHealthBeans(Integer healthBeans) {
        this.healthBeans = healthBeans;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname == null ? null : nickname.trim();
    }

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head == null ? null : head.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", openid=").append(openid);
        sb.append(", memberGuid=").append(memberGuid);
        sb.append(", unionid=").append(unionid);
        sb.append(", gender=").append(gender);
        sb.append(", city=").append(city);
        sb.append(", terminal=").append(terminal);
        sb.append(", healthBeans=").append(healthBeans);
        sb.append(", lastLoginTime=").append(lastLoginTime);
        sb.append(", nickname=").append(nickname);
        sb.append(", head=").append(head);
        sb.append("]");
        return sb.toString();
    }
}